<?php

/**
 * LEAGUEMan
 * 
 * Copyright (C) 2007 Marko Bischof
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

?>

<div class="contentheading">
	<?php echo $this->player->player_name;?>
</div>

<table class="contentpane">
	<tr>
		<td width="50%" valign="middle">
			<div align="center">
				<?php $this->plugin("thumb", "players", $this->player->player_image, 200, 0, 'width="200"'); ?>
			</div>
		</td>
		<td width="50%" align="center" valign="top">
			<table width="100%" border="0">
				<tr>
					<td width="30%"><b><?php echo _LM_PLAYERNAME;?>:</b></td>
					<td width="70%" align="left"><?php echo $this->player->player_name; ?></td>
				</tr>
          		<tr>
					<td><b><?php echo _LM_PLAYERBIRTHDAY;?>:</b></td>
					<td align="left"><?php $this->plugin("leagueman_get_age", $this->player->player_born, $this->player->player_died, true); ?></td>
				</tr>
				<tr>
					<td><b><?php echo _LM_PLAYERHEIGHT;?>:</b></td>
					<td align="left"><?php printf("%s %s", $this->player->player_height, _LM_HEIGHTUNIT); ?></td>
				</tr>
				<tr>
					<td><b><?php echo _LM_PLAYERWEIGHT;?>:</b></td>
					<td align="left"><?php printf("%s %s", $this->player->player_weight, _LM_WEIGHTUNIT);?></td>
				</tr>
				<tr>
					<td><b><?php echo 'Guestbook';?>:</b></td>
					<td align="left">{leagueman_discussion_link type="player" pid="<?php echo $this->player->getID();?>" category="18"}</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<div class="contentheading">
	<?php echo _LM_PLAYERHISTORY;?>
</div>

<?php $this->plugin("leagueman_get_player_stat", $this->player->player_id);?>
<br/>

<?php if($this->player->player_text) :?>
<div class="contentpane">
	<p><?php echo $this->player->player_text;?></p>
</div>
<?php endif	?>

<br/>

<div class="moduletable">
	<h3>Related Player Items</h3>
	{leagueman_related_items type="player"}
</div>


